<div class="am-modal am-modal-alert" tabindex="-1" id="alertModalMessage">
  <div class="am-modal-dialog">
    <div class="am-modal-hd">消息提醒</div>
    <div class="am-modal-bd" id="alertModal"></div>
    <div class="am-modal-footer">
      <span class="am-modal-btn">确定</span>
    </div>
  </div>
</div>

<div class="am-modal am-modal-confirm" tabindex="-1" id="confirmDeleteMessage">
  <div class="am-modal-dialog">
    <div class="am-modal-hd">消息提醒</div>
    <div class="am-modal-bd">
    	  您确定删除这条记录？
    </div>
    <div class="am-modal-footer">
      <span class="am-modal-btn" data-am-modal-cancel>取消</span>
      <span class="am-modal-btn" data-am-modal-confirm>确定</span>
    </div>
  </div>
</div>

<script>
function alertModal(msg){
	$("#alertModal").html(msg);
	$("#alertModalMessage").modal("open");
}

// 确认删除示例
// (function(){
// 	<span class="z-delete"  data-id="${obj.id }">删除</span>
// 	$(".z-delete").on('click', function(){
// 	      $('#confirmDeleteMessage').modal({
// 	          relatedTarget: this,
// 	          onConfirm: function(options) {
// 				var that = $(this.relatedTarget);
// 			  	var id = that.data("id");
// 				$.post("<%=request.getContextPath()%>/notepad/notedelete",{"id":id},function(res){
// 					if(res.code == 0){
// 						//that.parent().parent().parent().remove();
// 						window.location.reload(true);
// 					} else {
// 						alertModal(res.msg);
// 					}
// 				})
// 	          },
// 	          // closeOnConfirm: false,
// 	          onCancel: function() {
	        	  
// 	          }
// 	        });
// 		});
// })();
</script>